package com.monitor.app_monitor.service.quartz.task;

import com.monitor.app_monitor.entity.RealTimeAlarmDo;
import com.monitor.app_monitor.entity.TaskLogAnnotation;
import com.monitor.app_monitor.entity.mapper.RealTimeAlarmClickhouseMapper;
import com.monitor.app_monitor.entity.mapper.RealTimeAlarmMapper;
import io.micrometer.core.instrument.ImmutableTag;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tag;
import lombok.extern.slf4j.Slf4j;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import com.monitor.app_monitor.service.quartz.utils.logUtils;
import javax.annotation.Resource;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @ClassName CellectDataCheck.java
 * @Author ning
 * @Description TODO
 * @CreateTime 2021年12月16日 10:18:00
 */

@DisallowConcurrentExecution //作业不并发
@Component
@Slf4j

public class TestJob implements Job {

    @TaskLogAnnotation
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {



        Date date = new Date();
        String strDateFormat = "yyyy-MM-dd";
        SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
        String nowData = sdf.format(date);

        log.info("执行测试任务，时间：{}",nowData);


    }
}
